<?php
//echo $this->Form->create();
$workflows=$formData['workflows'];
?>
<div class="inform">
    <?php  __('Only required if user must belong to a specific workflow (e.g. cost center manager or buyers, other user involved in purchase request validation JDE / B@ali2 or supplier account creation) ') ?>
</div>
    <fieldset>
        <legend><?php __('Add Workflows'); ?></legend>
       
        <div class="wknb isHidden">0</div>
<?php
             for ($i=0;$i<10;$i++){
                echo '<div class="wk'.$i.' isHidden relative">';
?>
                <fieldset>
                    <legend>Workflow <?php echo $i+1;  ?></legend>
<?php           echo $this->Form->input('user_workflow_id'.$i,array('options'=>$workflows,'empty'=>'select','label'=>__('Workflow',true),'class'=>'wkList','id'=>'DmdformUserWorkflowId'.$i));
                echo $this->Form->input('user_powerdelegation_id'.$i,array('type'=>'select','label'=>__('Power Delegation',true),'class'=>'pdList','id'=>'DmdformUserPowerdelegationId'.$i));
                ?>
                </fieldset>
<?php           echo '</div>';
                }
?>
        <table class="nn">
            <tr>
                <td><div class="showNextBtn addWorkflow" ><?php __('Add a workflow')  ?></div></td>
                <td><div class="showNextBtn removeWorkflow isHidden" ><?php __('Remove workflow')  ?></div></td>
            </tr>
        </table>

    </fieldset>
<?php
//echo $this->Form->end('submit');
?>


